<?php
/*********************************************************************************
 * SugarCRM Community Edition is a customer relationship management program developed by
 * SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
 * 
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License version 3 as published by the
 * Free Software Foundation with the addition of the following permission added
 * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
 * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU Affero General Public License along with
 * this program; if not, see http://www.gnu.org/licenses or write to the Free
 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301 USA.
 * 
 * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
 * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
 * 
 * The interactive user interfaces in modified source and object code versions
 * of this program must display Appropriate Legal Notices, as required under
 * Section 5 of the GNU Affero General Public License version 3.
 * 
 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
 * these Appropriate Legal Notices must retain the display of the "Powered by
 * SugarCRM" logo. If the display of the logo is not reasonably feasible for
 * technical reasons, the Appropriate Legal Notices must display the words
 * "Powered by SugarCRM".
 ********************************************************************************/
$dictionary['edanz_Communications'] = array(
	'table'=>'edanz_communications',
	'audited'=>true,
	'fields'=>array (
		'type' => 
			  array (
			    'name' => 'type',
			    'vname' => 'LBL_TYPE',
			    'type' => 'enum',
			    'unified_search' => true,
			    'required' => true,
			    'importable' => 'required',
			    'massupdate' => 0,
			    'comments' => '',
			    'options' => 'type_list',
			    'duplicate_merge' => 'enabled',
			    'duplicate_merge_dom_value' => '1',
			    'audited' => true,
			    'reportable' => true,
			    'size' => '20',
			    'options'=>'Communications_type_list',
			  ),
		'description' => 
			  array (
			  	'name' => 'description',
			  	'vname' => 'LBL_DESCRIPTION',
			  	'type' => 'text',
			    'audited' => true,
			  ),
		'security_group' => 
			  array (
			    'name' => 'security_group',
			    'vname' => 'LBL_SECURITY_GROUP',
			    'type' => 'enum',
			  	'source' => 'non-db',
			    'options'=>'security_group_list',
			  ),
		'relate_deliverable_name' => 
		  array (
		    'name' => 'relate_deliverable_name',
		    'vname' => 'LBL_RELATE_DELIVERABLE_NAME	',
		    'type' => 'varchar',
		    'required' => false,
		    'importable' => 'required',
		    'massupdate' => 0,
		    'comments' => '',
		    'help' => '',
		    'duplicate_merge' => 'enabled',
		    'duplicate_merge_dom_value' => '1',
		    'audited' => true,
		    'reportable' => true,
		    'size' => '20',
		    'source' => 'non-db',
		  ),
		 'relate_job_name' => 
		  array (
		    'name' => 'relate_job_name',
		    'vname' => 'LBL_RELATE_JOB_NAME',
		    'type' => 'varchar',
		    'unified_search' => true,
		    'required' => false,
		    'importable' => 'required',
		    'massupdate' => 0,
		    'comments' => '',
		    'help' => '',
		    'duplicate_merge' => 'enabled',
		    'duplicate_merge_dom_value' => '1',
		    'audited' => true,
		    'reportable' => true,
		    'size' => '20',
		    'source' => 'non-db',
		  ),
		  'relate_job_id' => 
		  array (
		    'name' => 'relate_job_id',
		    'vname' => 'LBL_RELATE_JOB_ID',
		    'type' => 'id',
		    'source' => 'non-db',
		  ),
		  
),
	'relationships'=>array (
),
	'optimistic_locking'=>true,
		'unified_search'=>true,
	);
	
// Security Suite Groups
global $beanList;
if (isset($beanList['SecurityGroups'])) {
	$dictionary["edanz_Communications"]["fields"]["securitygroups_edanz_communications"] = array (
	  'name' => 'securitygroups_edanz_communications',
	  'type' => 'link',
	  'relationship' => 'securitygroups_edanz_communications',
	  'source' => 'non-db',
	  'vname' => 'LBL_SECURITYGROUPS_SUBPANEL_TITLE',
	);
	$dictionary["edanz_Communications"]["relationships"]["securitygroups_edanz_communications"] = array (
		'lhs_module' => 'SecurityGroups',
		'lhs_table' => 'securitygroups',
		'lhs_key' => 'id',
		'rhs_module' => 'edanz_Communications',
		'rhs_table' => 'edanz_communications',
		'rhs_key' => 'id',
		'join_table' => 'securitygroups_records',
		'join_key_lhs' => 'securitygroup_id',
		'join_key_rhs' => 'record_id',
		'relationship_type' => 'many-to-many',
		'relationship_role_column' => 'module',
		'relationship_role_column_value' => 'edanz_Communications',
	);
}

$dictionary["edanz_Communications"]["fields"]["edanz_deliverables_edanz_communications"] = array (
	  'name' => 'edanz_deliverables_edanz_communications',
	  'type' => 'link',
	  'relationship' => 'edanz_deliverables_edanz_communications',
	  'source' => 'non-db',
	  'vname' => 'LBL_EDANZ_DELIVERABLES_SUBPANEL_TITLE',
	);
if (!class_exists('VardefManager')){
        require_once('include/SugarObjects/VardefManager.php');
}
VardefManager::createVardef('edanz_Communications','edanz_Communications', array('basic','assignable'));


?>
